Objects Reference

flyEngine::join_multiplayer

Prototype

int join_multiplayer(HWND hWnd,HINSTANCE hInst)

Parameters

Parameter Type Description
hWnd HWND frontend window handle
hInst HINSTANCE frontend instance handle

Return Value

Returns TRUE if a game is joined, FALSE on any error or join cancel.

Remarks

This function is used to join a multiplayer game. A dialogue is shown with the player name and it lets the user select the server and the game to join. If a game is selected for joining, it loads the level the game is running on and returns TRUE. If the level is not in the user computer or the level name is not received, it returns FALSE and the game is not joined. When leaving the game, the multiplayer mode must be closed with the close_multiplayer function.